﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wfrmElipsysBuscar.aspx.cs" Inherits="wfrmBusquedaElipsys" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1.Export, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web.ASPxGridView.Export" TagPrefix="dxwgv" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script type="text/javascript">
function OnRowClick(e){
_aspxClearSelection();
GridSolicitud._selectAllRowsOnPage(false);
GridSolicitud.SelectRow(e.visibleIndex,true);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Listado de Personas - Elipsys</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <br />
        <dx:ASPxGridView ID="GridSolicitud" runat="server" AutoGenerateColumns="False" Caption="Listado de Personal"
            ClientInstanceName="GridSolicitud" Font-Bold="False" KeyFieldName="ID"
            Width="649px" DataSourceID="SqlDataSource1">
            <Styles>
                <Header CssClass="tableHeader" Font-Bold="True" ForeColor="White">
                </Header>
                <AlternatingRow Enabled="True">
                </AlternatingRow>
                <PagerBottomPanel BackColor="#D7C8C7" ForeColor="White">
                </PagerBottomPanel>
            </Styles>
            <Columns>
                <dx:GridViewCommandColumn VisibleIndex="0" Width="5px">
                    <ClearFilterButton Text="Limpiar" Visible="True">
                    </ClearFilterButton>
                </dx:GridViewCommandColumn>
                <dx:GridViewDataTextColumn Caption="C&#243;digo Personal" VisibleIndex="1" Width="25px" FieldName="ID">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Nombres" VisibleIndex="2" FieldName="NOMBRES">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Apellidos" VisibleIndex="3" FieldName="APELLIDOS">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Categor&#237;a" VisibleIndex="4" Width="25px" FieldName="CATEGORIA">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Los" VisibleIndex="5" Width="25px" FieldName="LOS">
                </dx:GridViewDataTextColumn>
                <dx:GridViewDataTextColumn Caption="Sub Los" VisibleIndex="6" Width="50px" FieldName="SUBLOS">
                </dx:GridViewDataTextColumn>
            </Columns>
            <Settings ShowFilterRow="True" />
            <ClientSideEvents RowClick="function(s, e) { OnRowClick(e);}" />
        </dx:ASPxGridView>
        <br />
        <asp:Button ID="btnSeleccionar" runat="server" Text="Seleccionar" /><asp:SqlDataSource
            ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GPConnectionString2 %>" SelectCommand="SELECT [ID], [NOMBRES], [APELLIDOS], [CATEGORIA], [LOS], [SUBLOS] FROM [TB_PERSONAL]">
        </asp:SqlDataSource>
       
    </div>
    </form>
</body>
</html>
